package io.jee.runshan.domain.remote.qiye.base;

import io.jee.runshan.utils.QiyeConstant;

public class Response {
	private int errcode;
	private String errmsg;
	private String invaliduser;

	public boolean success() {
		return this.errcode == 0;
	}

	public int getErrcode() {
		return errcode;
	}

	public void setErrcode(int errcode) {
		this.errcode = errcode;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = QiyeConstant.getProperty(this.errcode);
	}

	public String getInvaliduser() {
		return invaliduser;
	}

	public void setInvaliduser(String invaliduser) {
		this.invaliduser = invaliduser;
	}

}
